from db.projectData import ProjectData
from handlers.myhandler import *

class ProjectHandler(JSONHandler):

	def safeGet(self, user, **params):
		return ProjectData.getProjectData(user, **params)

	def safePost(self, user, **params):
		return ProjectData.newProject(user, **params)

	def safeDelete(self, user, **params):
		return ProjectData.deleteProjectData(user, **params)

	def safePut(self, user, **params):
		return ProjectData.newProject(user, **params)